package com.zf.yichat.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "user_lottery_prize")
public class UserLotteryPrize implements Serializable {

    // 已中奖 待发货
    public static final String STATE_0 = "0";
    // 已发货
    public static final String STATE_1 = "1";
    @Id
    private Long id;

    @Column(name = "user_id")
    private Long userId;

    @Column(name = "prize_id")
    private Long prizeId;

    @Column(name = "prize_name")
    private String prizeName;

    @Column(name = "prize_pic")
    private String prizePic;

    private String status;

    private String logistics;

    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @Column(name = "shipment_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date shipmentTime;

    private static final long serialVersionUID = 1L;

    public UserLotteryPrize(Long id,Long userId, Long prizeId, String prizeName, String prizePic, String status,String logistics,
                            Date createTime, Date shipmentTime) {
        this.id = id;
        this.prizeId = prizeId;
        this.userId = userId;
        this.prizeName = prizeName;
        this.prizePic = prizePic;
        this.status = status;
        this.logistics = logistics;
        this.createTime = createTime;
        this.shipmentTime = shipmentTime;
    }

    public UserLotteryPrize() {
        super();
    }

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return prize_id
     */
    public Long getPrizeId() {
        return prizeId;
    }

    /**
     * @param prizeId
     */
    public void setPrizeId(Long prizeId) {
        this.prizeId = prizeId;
    }

    /**
     * @return prize_name
     */
    public String getPrizeName() {
        return prizeName;
    }

    /**
     * @param prizeName
     */
    public void setPrizeName(String prizeName) {
        this.prizeName = prizeName == null ? null : prizeName.trim();
    }

    /**
     * @return prize_pic
     */
    public String getPrizePic() {
        return prizePic;
    }

    /**
     * @param prizePic
     */
    public void setPrizePic(String prizePic) {
        this.prizePic = prizePic == null ? null : prizePic.trim();
    }

    public String getLogistics() {
        return logistics;
    }

    public void setLogistics(String logistics) {
        this.logistics = logistics;
    }

    /**
     * @return status
     */
    public String getStatus() {
        return status;
    }

    /**
     * @param status
     */
    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * @return shipment_time
     */
    public Date getShipmentTime() {
        return shipmentTime;
    }

    /**
     * @param shipmentTime
     */
    public void setShipmentTime(Date shipmentTime) {
        this.shipmentTime = shipmentTime;
    }
}